package com.example.hrms.Entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Medicaldocuments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private Integer id;

    @TableField("Name")
    private String Name;

    @TableField("Sex")
    private String Sex;

    @TableField("Department")
    private String Department;

    @TableField("Age")
    private Integer Age;

    @TableField("Height")
    private Double Height;

    @TableField("Weight")
    private Double Weight;

    @TableField("Bust")
    private Double Bust;

    @TableField("Date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate Date;
}
